﻿@model List<QuestionType>

@{
    ViewData["Title"] = "所有的题型";
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>@ViewData["Title"]</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>

    <div class="container mt-5">
        <div class="row">
            <div class="col-md-10 offset-md-1">
                <div class="card">
                    <div class="card-header bg-primary text-white">
                        所有的题型
                    </div>
                    <div class="card-body">
                        <table class="table table-hover">
                            <thead class="thead-dark">
                                <tr>
                                    <th>题型名称</th>
                                    <th>题型描述</th>
                                    <th>题型分数</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach (var questionType in Model)
                                {
                                    <tr>
                                        <td>@questionType.type_name</td>
                                        <td>@questionType.type_desc</td>
                                        <td>@questionType.type_score</td>
                                    </tr>
                                }
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
